#ifndef TEST_TestRoad
#define TEST_TestRoad

#ifdef ECUT_MAIN

#include "cppunit/extensions/HelperMacros.h"
#include "map/Road.h"
#include "core/Vertex.h"

class TestRoad : public CPPUNIT_NS::TestFixture {
public:
	void setUp();
	void testAddEdgeInNewSegments();
	void testAddEdgeInSameSegment();
	void testGetEdgesSimple();
	void testGetEdgesCorner();
	void testOverlapping();
	CPPUNIT_TEST_SUITE(TestRoad);
	CPPUNIT_TEST(testAddEdgeInNewSegments);
	CPPUNIT_TEST(testAddEdgeInSameSegment);
	CPPUNIT_TEST_EXCEPTION(testOverlapping, OverlappingRoadSegmentException);
	CPPUNIT_TEST(testGetEdgesSimple);
	CPPUNIT_TEST(testGetEdgesCorner);
	CPPUNIT_TEST_SUITE_END();
private:
	Road* aRoad;
	Vertex* oVertex;
	Vertex* dVertex;
	Intersection* oIntersection;
	Intersection* dIntersection;
};

#endif /* ECUT_MAIN */

#endif /*TESTROAD*/
